package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableCaching//开关
@SpringBootApplication//主类
@MapperScan("com.itheima.reggie.mapper")//mybatis存在的包
@EnableTransactionManagement//事务管理
@Slf4j//调用loginfo

public class WebAppApplication {
    public static void main(String[] args ){
        SpringApplication.run(WebAppApplication.class,args);
        log.info("项目成功启动");


    }
}
